<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录 - 跨媒体内容检索和理解系统</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Microsoft YaHei', sans-serif;
            background: #0f172a;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        /* 多媒体元素背景 */
        .media-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
        }

        /* 文本元素 */
        .text-elements {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0.1;
            overflow: hidden;
        }

        .floating-text {
            position: absolute;
            color: #64748b;
            font-size: 14px;
            animation: textFloat 10s linear infinite;
        }

        @keyframes textFloat {
            0% { transform: translateY(100vh); opacity: 0; }
            10% { opacity: 1; }
            90% { opacity: 1; }
            100% { transform: translateY(-100vh); opacity: 0; }
        }

        /* 图像元素 */
        .image-elements {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .media-icon {
            position: absolute;
            font-size: 24px;
            color: rgba(100, 116, 139, 0.2);
            animation: iconPulse 4s ease-in-out infinite;
        }

        @keyframes iconPulse {
            0%, 100% { transform: scale(1); opacity: 0.2; }
            50% { transform: scale(1.2); opacity: 0.3; }
        }

        /* 音频波形效果 */
        .audio-waves {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100px;
            display: flex;
            justify-content: center;
            align-items: flex-end;
            gap: 2px;
        }

        .wave-bar {
            width: 3px;
            background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
            opacity: 0.2;
            animation: waveMove 1.5s ease-in-out infinite;
        }

        @keyframes waveMove {
            0%, 100% { height: 20px; }
            50% { height: 40px; }
        }

        .login-container {
            width: 100%;
            max-width: 420px;
            padding: 40px;
            background: rgba(30, 41, 59, 0.9);
            border-radius: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(59, 130, 246, 0.2);
            position: relative;
            z-index: 2;
        }

        .login-container::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, 
                #3b82f6,
                #1d4ed8,
                #3b82f6);
            border-radius: 22px;
            z-index: -1;
            animation: borderGlow 3s linear infinite;
            background-size: 200% 200%;
            filter: blur(10px);
            opacity: 0.3;
        }

        .system-logo {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            position: relative;
        }

        .system-logo::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, 
                transparent 40%, 
                rgba(255, 255, 255, 0.2) 45%,
                transparent 50%);
            animation: shine 3s infinite;
        }

        @keyframes shine {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .system-logo i {
            font-size: 36px;
            color: white;
        }

        .system-title {
            color: #f1f5f9;
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 8px;
            text-align: center;
        }

        .system-subtitle {
            color: #94a3b8;
            font-size: 14px;
            text-align: center;
        }

        .form-group {
            margin-bottom: 24px;
        }

        .form-group label {
            color: #cbd5e1;
            font-size: 14px;
            margin-bottom: 8px;
            display: block;
        }

        .input-group {
            position: relative;
        }

        .input-group i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #64748b;
        }

        .form-control {
            width: 100%;
            padding: 12px 16px 12px 44px;
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 8px;
            color: #f1f5f9;
            font-size: 16px;
            transition: all 0.3s;
        }

        .form-control:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
            outline: none;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 24px;
            color: #94a3b8;
        }

        .login-btn {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
        }

        .error-message {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 14px;
            display: none;
            align-items: center;
            gap: 8px;
        }
    </style>
</head>
<body>
    <!-- 多媒体背景元素 -->
    <div class="media-background">
        <!-- 文本元素 -->
        <div class="text-elements">
            <div class="floating-text" style="left: 15%; animation-delay: 0s;">文本检索</div>
            <div class="floating-text" style="left: 35%; animation-delay: 2s;">图像识别</div>
            <div class="floating-text" style="left: 55%; animation-delay: 4s;">语音分析</div>
            <div class="floating-text" style="left: 75%; animation-delay: 6s;">视频理解</div>
            <div class="floating-text" style="left: 25%; animation-delay: 1s;">文本检索</div>
            <div class="floating-text" style="left: 45%; animation-delay: 3s;">图像识别</div>
            <div class="floating-text" style="left: 65%; animation-delay: 5s;">语音分析</div>
            <div class="floating-text" style="left: 85%; animation-delay: 7s;">视频理解</div>
        </div>

        <!-- 图像元素 -->
        <div class="image-elements">
            <i class="media-icon fas fa-image" style="top: 20%; left: 20%; animation-delay: 0s;"></i>
            <i class="media-icon fas fa-video" style="top: 40%; left: 40%; animation-delay: 1s;"></i>
            <i class="media-icon fas fa-microphone" style="top: 60%; left: 60%; animation-delay: 2s;"></i>
            <i class="media-icon fas fa-file-alt" style="top: 80%; left: 80%; animation-delay: 3s;"></i>
            <i class="media-icon fas fa-image" style="top: 30%; left: 70%; animation-delay: 0.5s;"></i>
            <i class="media-icon fas fa-video" style="top: 50%; left: 30%; animation-delay: 1.5s;"></i>
            <i class="media-icon fas fa-microphone" style="top: 70%; left: 50%; animation-delay: 2.5s;"></i>
            <i class="media-icon fas fa-file-alt" style="top: 90%; left: 10%; animation-delay: 3.5s;"></i>
        </div>

        <!-- 音频波形 -->
        <div class="audio-waves">
            <div class="wave-bar" style="animation-delay: 0.1s;"></div>
            <div class="wave-bar" style="animation-delay: 0.2s;"></div>
            <div class="wave-bar" style="animation-delay: 0.3s;"></div>
            <div class="wave-bar" style="animation-delay: 0.4s;"></div>
            <div class="wave-bar" style="animation-delay: 0.5s;"></div>
            <div class="wave-bar" style="animation-delay: 0.6s;"></div>
            <div class="wave-bar" style="animation-delay: 0.7s;"></div>
            <div class="wave-bar" style="animation-delay: 0.8s;"></div>
            <div class="wave-bar" style="animation-delay: 0.9s;"></div>
            <div class="wave-bar" style="animation-delay: 1.0s;"></div>
        </div>
    </div>

    <div class="login-container">
        <div class="login-header">
            <div class="system-logo">
                <i class="fas fa-layer-group"></i>
            </div>
            <h1 class="system-title">跨媒体内容检索和理解系统</h1>
            <p class="system-subtitle">文本 · 图像 · 语音 · 视频</p>
        </div>

        <div class="error-message">
            <i class="fas fa-exclamation-circle"></i>
            <span>用户名或密码错误，请重试</span>
        </div>

        <form class="login-form" id="loginForm">
            <div class="form-group">
                <label for="username">用户名</label>
                <div class="input-group">
                    <i class="fas fa-user"></i>
                    <input type="text" id="username" class="form-control" placeholder="请输入用户名">
                </div>
            </div>

            <div class="form-group">
                <label for="password">密码</label>
                <div class="input-group">
                    <i class="fas fa-lock"></i>
                    <input type="password" id="password" class="form-control" placeholder="请输入密码">
                </div>
            </div>

         

            <button type="submit" class="login-btn">
                登录系统
            </button>
        </form>
    </div>

    <script>
        // 添加动态生成背景元素的脚本
        window.addEventListener('DOMContentLoaded', function() {
            // 动态添加更多浮动文本
            const textElements = document.querySelector('.text-elements');
            const texts = ['文本检索', '图像识别', '语音分析', '视频理解'];
            for(let i = 0; i < 12; i++) {
                const div = document.createElement('div');
                div.className = 'floating-text';
                div.textContent = texts[i % texts.length];
                div.style.left = Math.random() * 100 + '%';
                div.style.animationDelay = Math.random() * 10 + 's';
                textElements.appendChild(div);
            }

            // 动态添加更多媒体图标
            const imageElements = document.querySelector('.image-elements');
            const icons = ['image', 'video', 'microphone', 'file-alt'];
            for(let i = 0; i < 12; i++) {
                const icon = document.createElement('i');
                icon.className = 'media-icon fas fa-' + icons[i % icons.length];
                icon.style.top = Math.random() * 100 + '%';
                icon.style.left = Math.random() * 100 + '%';
                icon.style.animationDelay = Math.random() * 4 + 's';
                imageElements.appendChild(icon);
            }

            // 动态添加更多波形条
            const audioWaves = document.querySelector('.audio-waves');
            for(let i = 0; i < 20; i++) {
                const div = document.createElement('div');
                div.className = 'wave-bar';
                div.style.animationDelay = Math.random() * 1.5 + 's';
                audioWaves.appendChild(div);
            }
        });

        // 登录表单处理
        document.getElementById('loginForm').addEventListener('submit', function(e) {
            e.preventDefault();
            const username = document.getElementById('username').value;
            const password = document.getElementById('password').value;

            if (username === 'admin' && password === 'admin') {
                window.location.href = 'index.html';
            } else {
                document.querySelector('.error-message').style.display = 'flex';
            }
        });
    </script>
</body>
</html> 